package com.qidian.mes.cal.controller;

import com.qidian.mes.cal.service.DepartmentService;
import com.qidian.mes.util.pojo.MESResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@CrossOrigin
@RequestMapping("/department")
public class DepartmentController {
    @Autowired
    DepartmentService departmentService;

    @GetMapping("/list")
    //查询所有权限
    public MESResult list(@RequestParam(defaultValue = "1") int page, @RequestParam(defaultValue = " 10") int limit) {
        return departmentService.list(page,limit);
    }
}
